package exercise;

import java.io.File;
import java.io.IOException;
import java.sql.Date;

public class Ex2 {
	public static void main(String[] args) {
		File file=new File("d:/iotest/yzj.txt");
		System.out.println(new Date(file.lastModified()));
		System.out.println(file.delete());
		System.out.println(new File(file.getParent()).delete());
	}

}
